//
//  UIBarButtonItem+Extension.swift
//  LRWeibo
//
//  Created by Ruihaha on 16/9/22.
//  Copyright © 2016年 macbook air . All rights reserved.
//

import UIKit

    extension UIBarButtonItem{

        //延展不允许写属性
        //var clickBtn:(()->())?
        
        convenience init(title:String="",imageName:String,target:Any? ,action:Selector?) {
            
            let btn = UIButton(title: title, imageName: imageName, target: target, action: action)
            self.init()
            self.customView = btn
            
        }


    }


